package com.vincent.sciinfo.service.impl;

import com.vincent.sciinfo.mapper.AdminMapper;
import com.vincent.sciinfo.pojo.Admin;
import com.vincent.sciinfo.pojo.Message;
import com.vincent.sciinfo.pojo.Paper;
import com.vincent.sciinfo.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminMapper adminMapper;

    @Override
    public Admin selectAdminInfoById(String id) {
        return adminMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateAdmin(Admin admin) {
        return adminMapper.updateByPrimaryKey(admin);
    }

}
